package com.example.service.impl;

import com.example.entity.ComRecruit;
import com.example.entity.Recruit;
import com.example.mapper.RecruitMapper;
import com.example.service.RecruitService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cyk
 * @since 2022-02-19
 */
@Service
public class RecruitServiceImpl extends ServiceImpl<RecruitMapper, Recruit> implements RecruitService {

    @Autowired
    RecruitMapper recruitMapper;

    @Override
    public List<ComRecruit> getAllRecruit() {
        return recruitMapper.getAllRecruit();
    }

    @Override
    public ComRecruit getAllRecruitById(Long id) {
        return recruitMapper.getAllRecruitById(id);
    }

    @Override
    public Recruit getQueryRecruit(Long id) {
        return recruitMapper.getQueryRecruit(id);
    }

    @Override
    public int getDelRecruit(Long id) {
        return recruitMapper.getDelRecruit(id);
    }

    @Override
    public boolean saveRecruit(Recruit recruit) {
        return recruitMapper.saveRecruit(recruit);
    }

    @Override
    public boolean updateRecruit(Recruit recruit) {
        return recruitMapper.updateRecruit(recruit);
    }

}
